#!/usr/bin/env python
# -*- coding: utf-8 -*-

# 1.Module documentation
"""
    Some descriptions of this module
"""

# 2.Module imports
from django.db import models

# 3.Global variables declarations
VERSION = "0.0.1"

# 4.Class declarations
class NDSSource(models.Model):
    datName = models.CharField(max_length=1024)
    datVersion = models.CharField(max_length=256)
    system = models.CharField(max_length=256)
    language = models.CharField(max_length=256)
    # http://ndslist.hp.infoseek.co.jp/ver.txt
    datVersionURL = models.URLField()
    # http://ndslist.hp.infoseek.co.jp/NDS_List_Japan.zip
    datURL = models.URLField()
    # http://www.retrocovers.com/offline/imgs/ADVANsCEne_NDS/
    imURL = models.URLField()

    def __unicode__(self):
        return self.datName

class NDSGame(models.Model):
    imageNumber = models.IntegerField()
    releaseNumber = models.IntegerField()
    title = models.CharField(max_length=1024)
    saveType = models.CharField(max_length=256)
    romSize = models.IntegerField()
    publisher = models.CharField(max_length=256)
    location = models.CharField(max_length=256)
    sourceRom = models.CharField(max_length=256)
    language = models.CharField(max_length=256)
    romCRC = models.CharField(max_length=256)
    im1CRC = models.CharField(max_length=256)
    im2CRC = models.CharField(max_length=256)
    comment = models.CharField(max_length=1024)

    def __unicode__(self):
        return self.title

# 5.Function declarations
def test():
    pass

# 6.Main body
if __name__ == '__main__':
    test()
